package com.easylinkin.linkappapi.childinspection.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.childinspection.entity.InspectionRecordEntity;
import com.easylinkin.linkappapi.childinspection.vo.BaseVo;
import com.easylinkin.linkappapi.childinspection.vo.InspectionRecordVo;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.safe.dto.HiddenDangerDTO;

import java.util.Map;

/**
 * @author linWenLe
 * @Date: 2024/4/11
 * @Description:
 */
public interface InspectionRecordService extends IService<InspectionRecordEntity> {

    IPage<InspectionRecordEntity> getList(RequestModel<BaseVo> restPage);

    String insert(InspectionRecordVo entity);

    Map<String,Object> getPointAndUserInfo(String pointId);

    InspectionRecordEntity findRecord(String pointId);

    Map<String,Object> findRecordAndDanger(String pointId);

    Map<String, Object> getTaskCount(String taskId);

    HiddenDangerDTO selectOne(String id);
}
